<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<%- set_header_defaults unless @meta_tags -%>
		<title><%= h(@title) %></title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta http-equiv="imagetoolbar" content="no" />
		<%- @meta_tags.each do |tag_name, content| -%>
		<meta name="<%= h(tag_name) %>" content="<%= h(truncate(content, 160)) %>" />
		<%- end -%>

		<% if logged_in? %>
			<link rel="search" href="<%= opensearch_user_url(current_user) %>" type="application/opensearchdescription+xml" title="queri.ac/<%= current_user.login %>" />
		<% end %>
		
		<%= stylesheet_link_tag 'base' %>
		<%= javascript_include_tag :defaults unless @no_js %>
		<%- unless @feed_icons.blank? -%>
		  <%- @feed_icons.each do |feed| -%>
		  <%= auto_discovery_link_tag :rss, feed[:url], :title => "#{feed[:title] || h(@title)}" %>
		  <%- end -%>
		<%- end -%>
	</head>
	
	<body>
	
		<div class="container">
		  <div id="header">
		
		    <div id="logo">
					<%= render_nav %>
				</div>
				
		    <div id="mininav">
					<%= render_mininav %>
		    </div>
			<div id="header_search">
				<% form_tag header_search_commands_path, :method=>:get  do %>
					<%= text_field_tag "q", nil, :size=>15, :id=>"header_search_query" %>
					<%= submit_tag 'Search Commands' if logged_in? %>
					<%= submit_tag 'Public Command'%>
				<% end %>
			</div>

		  </div><!-- end #header -->
		
		  <div id="content">
         <%= flash_div %>
         <%= yield %>
		  </div><!-- end #content -->
		
		</div><!-- end #container -->
	
		<div id="footer">
			<div id="footernav">
				<%= render_footernav %>
			</div>
			<div style="padding-left: 40%">
			<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
			<input type="hidden" name="cmd" value="_s-xclick"/>
			<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
			<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
			<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEoIIHMDCCBywCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCHXQgCjgWtw0Fl3Nm/uEIImEORXk7br1AwMGPpAKyRxQoFmneZasjUTG0OAZ4RkmMjL8pohzGU+ZZfS05MTA5FR9sAa9yh8EioPKY4C9cMlRndjZPc1NpPXXys732k36sPJsQKE3go2mIyIpa71sFwJ7TCUd6iYD3i0h5fL2DuUzELMAkGBSsOAwIaBQAwgbwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIoSJMQLn5p3aAgZiZJXO89yZEJ0bzdBDP2LkW8oTjfiCK4bLJKitNSybjfKoMwn6GFPXIshSazagMoxkfViYmoU6DC+n8pRoyX9EhPIKwqALiHmaVH9vtBBGBsq6JzH0jUF0s4N4+cAvWs8r2FGpykKAVvEqbCHU4zuV+t+mBsE+Z2sfTbflYQbrjKGdwuehQedP5grcGwd0I+3UkI84vXaBJz6CCA4cwggODMIIC7KADAgECAgEAMA0GCSqGSIb3DQEBBQUAMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbTAeFw0wNDAyMTMxMDEzMTVaFw0zNTAyMTMxMDEzMTVaMIGOMQswCQY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AxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA4MDQyNzA5NTU0M1owIwYJKoZIhvcNAQkEMRYEFKHfoQ2ZEJj3FIq4MJ/dwS8/zNfKMA0GCSqGSIb3DQEBAQUABIGAZHKDMQmo+DuB5rySmI96hdPLdNXuD8iZFmumCTpL6WPBikrRLtmRjnR5D4rVSu+eanMqyEPx1Vvlw+38/9FukTVyyRjKXZM+p1+HWzBF2SKEtb0d0OSOpQenwevcCL0o2iziL4qlDBFngF3rDabwXTw8WVkA+MxYLNMn0EXctwI=-----END PKCS7-----
			"/>
			</form>
			</div>
		</div>
		<!-- end #footer -->
		
		<script type="text/javascript">
			var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
			document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
		</script>
		<script type="text/javascript">
			var pageTracker = _gat._getTracker("UA-81559-4");
			pageTracker._initData();
			pageTracker._trackPageview();
		</script>
	
	</body>
</html>

